﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<MedicalManagementSystem.Models.Doctor>" 
 MasterPageFile="~/Views/Shared/AdminSite.master"%>
<%@ Import Namespace="MedicalManagementSystem.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= String.Format("Врач: {0}", Model.Name) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainRightColumn" runat="server">

    <h2><%= String.Format("Редактирование врача: {0}", Model.Name) %></h2>

    <%= Html.ValidationSummary("Пожалуйста, исправьте ошибки и попробуйте снова.") %>
    <% using (Html.BeginForm()) {%>
                
        <fieldset>
                        
            <div class="editor-label">
                <%= Html.Label("Фамилия") %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Surname) %>
                <%= Html.ValidationMessageFor(model => model.Surname) %>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Имя") %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Отчество") %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Patronymic) %>
                <%= Html.ValidationMessageFor(model => model.Patronymic) %>
            </div>
            
            <div class="editor-label">
                <%= Html.Label("Должность") %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Post) %>
                <%= Html.ValidationMessageFor(model => model.Post) %>
            </div>
            
            <p>
                <input type="submit" value="Сохранить" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Назад к списку", "Index") %>
    </div>

</asp:Content>



